<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showShangpin.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!-- 引入jquery.js -->
 <script type="text/javascript" src="./js/jquery.min.js"></script>
    <style rel="stylesheet" type="text/css">
    #center{
     text-align:center
    }
    </style>
  <!--   初始化 -->
 <%--  <script type="text/javascript">
	
	$(document).ready(function() {
		
		window.location.href="<%=path%>/tuihuanhmx.do?method=selectByFenye";     
    
    });
 </script>  --%>
 
<script type="text/javascript">

function zeng(form){
	if(form.name.value==''){
	alert('用户名不能为空！');
	form.name.focus();
	return false;
	}
	var regAge = /^\d{1,2}$/;
	if(form.password.value=='') {
	alert('年龄必须为数字！');
	form.password.focus();
	return false;
	}
	return true;
	}
	
	
function xiugai(form){
	if(form.name.value==''){
	alert('用户名不能为空！');
	form.name.focus();
	return false;
	}
	var age = $.trim($("#txtAge").val());
	var regAge = /^\d{1,2}$/;
	if(regAge.exec(age)==null) {
	alert('年龄必须为数字！');
	form.password.focus();
	return false;
	}
	return true;
	}
</script>  
 
  </head>
  
  <body>
  <h1></h1>
    	<form action="tuihuanhmx.do?method=selectByFenye" method="post"><!--
			ID:<input type="text" name="id"/>-->
			供应商名:<input type="text" name="gysname"/>
			价格:<input type="text" name="price"/>	
			货名:<input type="text" name="spname"/>
			货号:<input type="text" name="spno"/>
			尺码:<input type="text" name="size"/>			
			<input type="submit" value="查询"/>
			
		</form>
    	<table  width="100%" border="0"   cellspacing="0" id='tbodyID'>
			<tr>
				<td>
					编号
				</td>
				<td>
					日期
				</td>
				<td>
					供应商
				</td>
				<td>
					订单id
				</td>
				<td>
					电话
				</td>
				<td>
					快递单号
				</td>
				<td>
					包裹衣服
				</td>
				<td>
					颜色尺码
				</td>
				<td>
					数量
				</td>
				<td>
					退换
				</td>
				<td>
					处理结果
				</td>
				 <td colspan="1" id="center" ><strong>操作</strong></td>
			</tr>
			<c:forEach items="${list}" var="s">
				<tr >
					<td>
						${s.id }
					</td>
					<td>
						${s.tradedate }
					</td>
					<td>
						${s.gysid }
					</td>
					<td>
						${s.dindanid }
					</td>
					<td>
						${s.dianhua }
					</td>
					<td>
						${s.kuaidiid }
					</td>
					<td>
						${s.baogyf }
					</td>
					<td>
						${s.yanscm }
					</td>
					<td>
						${s.shuliang}	
					</td>
					<td>
						${s.tuihuan }
					</td>
					<td>
						${s.chulijg}
					</td>
					<td id="center"  >
					<a href="jsp/tinsert.jsp">增加</a>
					<a href="jsp/tupdate.jsp?id=${s.id }">修改</a>
			        <a href="tuihuanhmx.do?method=delete&id=${s.id }">删除</a>
				</tr>
			</c:forEach>
		</table>
		<a href="tuihuanhmx.do?method=selectByFenye&index=1">首页</a>
		<a href="tuihuanhmx.do?method=selectByFenye&index=${page.index-1 }">上一页</a>
		<a href="tuihuanhmx.do?method=selectByFenye&index=${page.index+1 }">下一页</a>
		<a href="tuihuanhmx.do?method=selectByFenye&index=${page.count }">尾页</a>
		共 ${page.count}页
		<a href="tuihuanhmx.do?method=downLoad">下载</a>
  </body>
</html>
